package com.magicode.cms.dao.impl;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.magicode.cms.dao.INewsEnterpriseRelaDao;
import com.magicode.cms.dao.IOfflineEventsDao;
import com.magicode.cms.dao.IOfflineEventsEnterpriseDao;
import com.magicode.cms.entiy.base.NewsEnterpriseRela;
import com.magicode.cms.entiy.base.OfflineEventsEnterprise;
import com.magicode.cms.entiy.base.VideoPlayHistory;
@Repository("offlineEventEnterpriseDao")
public class OfflineEventEnterpriseDaoImpl extends BaseDaoImpl<OfflineEventsEnterprise>implements IOfflineEventsEnterpriseDao {

	@Override
	public List<OfflineEventsEnterprise> queryDataList(String hql, int i, int j) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deletecoSponsorEnts(String userid) {
		String hql = " from "+OfflineEventsEnterprise.class.getName()+" t " +
				"  where  t.offlineEvents.id = '"+userid+"'" ;
		List<NewsEnterpriseRela> vphs = commonDaoService.getListByHQL(hql);
		commonDaoService.deleteAll(vphs);
	}

	@Override
	public void deleteSponsorEnts(String offEvnid) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteAllSponsorEnts(String offEvnid) throws Exception {
		// TODO Auto-generated method stub
		
	}
}
